﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cofe.Core.Implements;

namespace Cofe.Data.Implements
{
    public class UserFeedbackPropertiesExpressionDefinitions : PropertyExpressionDefinitionBase<UserFeedbackProperties>
    {
        public UserFeedbackPropertiesExpressionDefinitions()
        {
            registerPropertyExpression(UserFeedbackProperties.Description, e => e.DatabaseEntry.Description);
            registerPropertyExpression(UserFeedbackProperties.Tags, e => e.DatabaseEntry.HashTags.Select(ht => ht.TagName));
        }

        public override System.Linq.Expressions.Expression<Func<CofeSystemInfo, T>> GetPropertyExpression<T>(object property)
        {
            return base.GetPropertyExpression<T>(property);
        }
    }

}
